﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Calhoon.MarkupParser
{
	public class LiteralPrimitiveTag : PrimitiveTag
	{
		public virtual string Text {
			get {
				return RawText;
			}
			set {
				RawText = value;
			}
		}

		public override bool IsSelfClosing {
			get {
				return true;
			}
			set {
				//Intentionally blank.
			}
		}

		public override bool IsClosing {
			get {
				return false;
			}
			set {
				//Intentionally blank.
			}
		}

		public LiteralPrimitiveTag()
			: base() {
			TagName = "_Literal";
		}

		public LiteralPrimitiveTag(string text)
			: this() {
			base.RawText = text;
		}
	}
}